<form class="form-horizontal form-validate form-modal" method="post" action="{:url('info')}">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">{$row['level_id']>0?'编辑':'添加'}奖金池</h4>
            </div>
            <div class="modal-body">

                <div class="form-group">
                    <label class="col-sm-3 control-label">奖金池名称：</label>
                    <div class="col-sm-9">
                        <input type="text" class="input-large" data-rule-maxlength="20" data-rule-required="true"
                               name="jc_name" value="{$row.jc_name}"><span class="maroon">*</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">奖金池份额：</label>
                    <div class="col-sm-9">
                        <input type="number" min="0" name="num" class="input-mini" data-rule-required="true"
                               data-rule-number="true" value="{$row.num}"> 份
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">自身等级 ：</label>
                    <div class="col-sm-9">
                        <select name="own_level" style="width:30%;" data-toggle="select2" data-notsearch="true"
                                data-placeholder="选择等级">
                            <option value="">选择等级</option>
                            {$userRole|raw}
                        </select>
                        直推 ：<input type="number" name="push_num" class="input-mini" data-rule-required="true"
                                   data-rule-number="true" value="{$row.push_num}">个
                        <select name="push_level" style="width:30%;" data-toggle="select2" data-notsearch="true"
                                data-placeholder="选择等级">
                            <option value="">选择等级</option>
                            {$userRole2|raw}
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">获得份额：</label>
                    <div class="col-sm-9">
                        <input type="number" min="0" name="obtain_num" class="input-mini" data-rule-required="true"
                               data-rule-number="true" value="{$row.obtain_num}"> 份
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <input type="hidden" name="level_id" value="{$row.level_id|intval}"/>
                <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</form>